import request from '@/utils/request'

export function getSingleStoreList(data: any) {
  return request({
    url: '/supplier/order/list',
    method: 'get',
    params: data,
  })
}

// 发货
export function sendSingleShipment(data: any) {
  return request({
    url: '/supplier/order/edit_shipment',
    method: 'post',
    data,
  })
}

// 获取单据信息
export function getSingleSalesInfo(data: any) {
  return request({
    url: '/supplier/order/info',
    method: 'get',
    params: data,
  })
}

// 基本信息
export function getSingleSalesBaseInfo() {
  return request({
    url: '/supplier/order/base_info',
    method: 'get',
  })
}

// 编辑单价
export function editSingleSalesPrice(data: any) {
  return request({
    url: '/supplier/order/price',
    method: 'post',
    data,
  })
}

// 销售单结款  //仅仅是结款一个状态显示 不涉及业务员
export function paymentSingleSales(data: any) {
  return request({
    url: '/supplier/order/settle_payment_status',
    method: 'post',
    data,
  })
}
